package cn.com.cym.gamezao.repository.authorize;

import cn.com.cym.gamezao.base.BaseRepository;
import cn.com.cym.gamezao.entity.authorize.UserLoginLog;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.redis.core.RedisHash;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@RedisHash
@Repository
public interface UserLoginLogRepository extends BaseRepository<UserLoginLog,Long> {

    @Query("from UserLoginLog where deleted=:deleted")
    List<UserLoginLog> findAllByDeleted(@Param("deleted") Boolean deleted);
}
